SOURCE_PATH=./src
BIN_PATH=./bin


SOURCES:= $(shell find $(SOURCE_PATH) -name '*.c' )



objs=$(SOURCES)


all : $(SOURCES)
	$(foreach source,$(SOURCES),$(shell cc -o $(BIN_PATH)$(subst $(SOURCE_PATH),,$(basename $(source))) $(source)))

	
clean : 
	rm ./bin $(objs)